package cn.smile.controller.basic;

import cn.smile.business.basic.ISwiperShopService;
import cn.smile.commons.response.MyResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("api/swiper")
public class SwiperController {

    @Resource
    private ISwiperShopService service;

    @GetMapping(value = "getSwiperList")
    public MyResult<List<String>> getSwiperList() {
        return MyResult.OK(service.getSwiperUrlList());
    }
}
